﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;


namespace JotaAjaxExtender
{
    /// <summary>
    /// Summary description for ExtenderControl1
    /// </summary>
    [TargetControlType(typeof(TextBox))]
    public class PopUpExtender : ExtenderControl
    {    
        public PopUpExtender()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors(System.Web.UI.Control targetControl)
        {
            ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("JotaAjaxExtender.ClientBehavior1", targetControl.ClientID);
            yield return descriptor;            
        }

        // Generate the script reference
        protected override IEnumerable<ScriptReference> GetScriptReferences()
        {
            yield return new ScriptReference("JotaAjaxExtender.ClientBehavior1.js", this.GetType().Assembly.FullName);
        }
    }
}